﻿using BCCommon.Enums;
using BCCommon.PaymentEnums;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCEntity.Common.FlowRecord
{
    /// <summary>
    /// 流水记录
    /// </summary>
    public class UserFlowRecordEntity
    {
        /// <summary>
        /// 流水记录Id
        /// </summary>
        public long UserFlowRecordId { get; set; }

        /// <summary>
        /// 流水类型(运费,订单网络平台使用费,代收货款,代收货款佣金,充值,提现,保价佣金,赔偿,手续费,退款，保证金，违约金，终止合同费，其他)
        /// </summary>
        public FlowType FlowType { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        public decimal Balance { get; set; }

        /// <summary>
        /// 资金流向
        /// </summary>
        public SourceFlowDirectionType FlowDirection { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 支付渠道
        /// </summary>
        public PaymentChannelType Channel { get; set; }

        /// <summary>
        /// 流水备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 风险级别
        /// </summary>
        public SourceRiskLevelType RiskLevel { get; set; }
    }
}